-
Notifications
You must be signed in to change notification settings - Fork 340
Don't stop on breakpoints when running the swift Object Description function #10693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't stop on breakpoints when running the swift Object Description function #10693
Conversation
setting "IgnoreBreakpointsInExpressions", so it was stopping on breakpoints. That's not how the ObjC object description is run, and is not what people expect here. I added the setting to the options in the Swift case, and added a test that we don't stop on breakpoints in the Object Description expression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@swift-ci test |
@swift-ci test windows |
@jimingham Can add a skip on windows to the new test? |
def test_value_types(self): | ||
"""Test 'po' on a variety of value types with and without custom descriptions.""" | ||
self.build() | ||
(_,_,_,_) = lldbutil.run_to_source_breakpoint(self, "Break here to run tests", lldb.SBFileSpec("main.swift")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(_,_,_,_) = lldbutil.run_to_source_breakpoint(self, "Break here to run tests", lldb.SBFileSpec("main.swift")) | |
lldbutil.run_to_source_breakpoint(self, "Break here to run tests", lldb.SBFileSpec("main.swift")) |
Apparently inlined swift tests are skipped in a different way than normal API tests, and when switching from one to the other I didn't notice the @swifttest was missing. We don't currently run the swift tests on Windows (we don't actually know how to build the test binary there), and so the missing decorator meant we tried the new test on Windows which didn't go well. |
@swift-ci please test |
@swift-ci test linux |
…unction (#10693) * The Swift `object description` expression was being run without setting "IgnoreBreakpointsInExpressions", so it was stopping on breakpoints. That's not how the ObjC object description is run, and is not what people expect here. I added the setting to the options in the Swift case, and added a test that we don't stop on breakpoints in the Object Description expression. * Mark the tests as @swifttest and fix the test name. (cherry picked from commit d8693d3)
The Swift
object description
expression was being run without setting "IgnoreBreakpointsInExpressions", so it was stopping on breakpoints. That's not how the ObjC object description is run, and is not what people expect here.I added the setting to the options in the Swift case, and added a test that we don't stop on breakpoints in the Object Description expression.
rdar://150698964